package com.jiantong.web.core.component.user.service;

import io.terminus.common.model.Response;

import java.util.Set;

/**
 * 用户设备服务
 *
 * DATE: 17/1/12 下午12:02 <br>
 * MAIL: zhanghecheng@terminus.io <br>
 * AUTHOR: zhanghecheng
 */
public interface UserDeviceService {

    Response<Boolean> addDevice(Long userId, String deviceType, String deviceToken);

    Response<Boolean> removeDevice(Long userId, String deviceType, String deviceToken);

    Set<String> findDevices(Long userId, String deviceType);

    Response<Boolean> refresh(Long userId, String deviceType, String deviceToken);
}
